package com.clp.inflxudb.core.domain;

import com.clp.inflxudb.core.enums.TsUnit;

import java.time.Instant;

public interface TsRange {
    static TsRange getInstance(Instant startTime, Instant stopTime) {
        return new InstantTsRange(startTime, stopTime);
    }

    static TsRange getInstance(int startTime, int stopTime, TsUnit tsUnit) {
        return new IntTsRange(startTime, stopTime, tsUnit);
    }
}
